package per.turtle.file.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * 文件限制
 *
 * @author turtle
 */
@Component
@Data
public class FileConfig implements WebMvcConfigurer {

    /**
     * 限制大小(M)
     */
    @Value("${file.maxSize:50}")
    private long maxSize;

}